/**
 * Copyright ©2016-2022 tianyu education Corporation, All Rights Reserved
 * http://www.whty.com.cn/
 */
package profile.hujia.redis.manager;

import redis.clients.jedis.JedisCluster;

/**
 * class info
 *
 * @author hujia
 * @date 2019-12-24 10:57
 */
public class JedisClusterCache implements Cache {

    private JedisCluster jedisCluster;

    public void setJedisClusterCache(JedisCluster jedisCluster) {
        this.jedisCluster = jedisCluster;
    }

    @Override
    public void put(byte[] key, byte[] value) {
        jedisCluster.set(key, value);
    }

    @Override
    public byte[] get(byte[] key) {
        return jedisCluster.get(key);
    }
}